package com.woniu.stafforder.service;

import com.woniu.common.dto.OrderDto;
import com.woniu.common.util.PageParam;
import com.woniu.common.util.ResponseData;
import com.woniu.stafforder.dto.ChangeChildrenOrderStateDto;
import com.woniu.stafforder.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_order】的数据库操作Service
* @createDate 2024-05-21 18:37:47
*/
public interface OrderService extends IService<Order> {

    /**
     * 根据订单id修改订单状态
     * @param order
     * @return
     */
    Boolean updateOrderStatus(Order order);

    /**
     * 查询订单列表
     * @return
     */
    ResponseData<?> queryOrderList(PageParam<OrderDto> pageParam);

    /**
     * 根据订单号查询订单
     * @param orderNum
     * @return
     */
    ResponseData<?> queryOrderByOrderNum(Long orderNum);
}
